from dtptcpy import DtptcCli,DtptcSer
if __name__=="__main__":
    
    ser = DtptcSer()
    handle=ser.run(10)
    cli = DtptcCli()
    cli.SendData(2,b"123")
    cli.SendData(2,b"234")
    cli.SendData(2,b"234")
    cli.SendData(1,b"234")
    cli.SendData(1,b"234")
    cli.SendData(1,b"popopo")
    gz = cli.GetData(2)
    print(gz)
    gz = cli.GetData(1)
    print(gz)
    ll = cli.GetLen(1)
    print(ll)
    handle.terminate()
